#ifndef __HC12_H
#define __HC12_H

#include "stm32f10x.h"


#define HC12_Set_PORT	GPIOA
#define HC12_Set_PIN	GPIO_Pin_11

#define HC12POWER_PORT	GPIOA
#define HC12POWER_PIN	GPIO_Pin_12

#define HC12_Set_H()	GPIO_SetBits(HC12_Set_PORT,HC12_Set_PIN)
#define HC12_Set_L()	GPIO_ResetBits(HC12_Set_PORT,HC12_Set_PIN)

#define HC12POWER_ON()	GPIO_SetBits(HC12POWER_PORT,HC12POWER_PIN)
#define HC12POWER_OFF()	GPIO_ResetBits(HC12POWER_PORT,HC12POWER_PIN)

void HC12_Inital(void);
void HC12_InSet(void);
void HC12_OutSet(void);
void ReadHC12Information(void);
void refresh433(void);

#endif

